#pragma once

#include <d3d10.h>
#include "EngineObject.h"
#include "EnginePointer.h"

class ModelIndexBuffer : public EngineObject
{
public:
	ModelIndexBuffer(BYTE* indexData, UINT64 numIndices, UINT64 sizeBytes, UINT indexType);
	~ModelIndexBuffer(void);

	HRESULT LoadGraphicsContent(EnginePointer<ID3D10Device> pDevice);
	void UnloadGraphicsContent();
	ID3D10Buffer* getBuffer();
	AUTO_SIZE;
private:
	UINT64 numIndices;
    UINT64 sizeBytes;
    UINT indexType;
	BYTE* indexData;

	ID3D10Buffer* pIndexBuffer;
};
